let panpanrouter=[
//     {
//     path:"/",
//     redirect:"/login"
// },

    {
        // 注册页面路由
        path: '/register',
        name: 'register',
        component: () => import('@/views/panpan/Register.vue'),
        
    //     children:[
    //     {
    //         path: '/about',
    //         name: 'about',
    //         component: () => import('../views/AboutView.vue'),
    //     }
    // ]
    },
    {
        //登录页面路由
        path: '/login',
        name: 'login',
        component: () => import('@/views/panpan/Login.vue')
    },
    //华为专区路由
    {
        path: '/huaweizone',
        name: 'huaweizone',
        component: () => import('@/views/panpan/huaweizone.vue'),
        children:[
        {
            path: '/',
            name: 'baokuan',
            component: () => import('@/views/panpan/components/HuaweiZone/NavSecond/baokuan.vue'),
        },
        {
            path: '/xinpin',
            name: 'xinpin',
            component: () => import('@/views/panpan/components/HuaweiZone/NavSecond/xinpin.vue'),
        },
        {
            path: '/pinlei',
            name: 'pinlei',
            component: () => import('@/views/panpan/components/HuaweiZone/NavSecond/pinlei.vue'),
        },
        {
            path: '/more',
            name: 'more',
            component: () => import('@/views/panpan/components/HuaweiZone/NavSecond/more.vue'),
        },
    ]
    },
    {
        //旗舰新品路由
        path: '/newproduct',
        name: 'newproduct',
        component: () => import('@/views/panpan/NewProduct.vue')
    }
    ,
    {
        //猜你喜欢详情路由
        path: '/likedetails',
        name: 'likedetails',
        component: () => import('@/views/panpan/LikeDetails')
    },
    {
        // 华为p50详情页
        path: '/huaweip50',
        name: 'huaweip50',
        component: () => import('@/views/panpan/HuaweiP50')
    },
    {   
        //耳机列表页
        path: '/erji',
        name: 'erji',
        component: () => import ('../../views/panpan/HeadsetView.vue'),
        children: [{
                path: '/zonghe',
                name: 'zonghe',
                component: () =>
                    import ('@/views/panpan/components/HeadsetView/NavSecond/ZongHe.vue')
            },
            {
                path: '/zuixin',
                name: 'zuixin',
                component: () =>
                    import ('@/views/panpan/components/HeadsetView/NavSecond/ZuiXin.vue')
            },
            {
                path: '/pinglun',
                name: 'pinglun',
                component: () =>
                    import ('@/views/panpan/components/HeadsetView/NavSecond/PingLun.vue')
            },
            {
                path: '/jiage',
                name: 'jiage',
                component: () =>
                    import ('@/views/panpan/components/HeadsetView/NavSecond/JiaGe.vue')
            },
            {
                path: '/shaixuan',
                name: 'shaixuan',
                component: () =>
                    import ('@/views/panpan/components/HeadsetView/NavSecond/ShaiXuan.vue')
            }
        ]
    }
]
export default  panpanrouter;